﻿using ITXHWEB.Models;
using ReflectionStudio.Core.Events;
using System;
using System.Data;
using System.Web.Mvc;
using WPFExcelReport;
using WPFExcelReport.Helpers;
using ITXHWEB.Infrastructure;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
namespace ITXHWEB.Controllers
{
    public partial class WBFEHLController : ITXController
    {
        [ChildActionOnly]
        public ActionResult PEREND(string returnUrl)
        {
            return PartialView();
        }

        [HttpPost]
        [AllowAnonymous]
        [ValidateAntiForgeryToken]
        public ActionResult PEREND(WBFEHLModel model, string returnUrl)
        {
            try
            {
                MABF.VWBB.CERK.CERROR.WBFLGVON= MABF.MAM.UIAM.VU0;
                MABF.VWBB.CERK.CERROR.dwMaster["WBFLGVON"] = MABF.MAM.UIAM.VU0; 
            }
            catch (Exception ex)
            {
                //ModelState.AddModelError("",ex.Message);
                Tracer.Error(ex.StackTrace, ex);
            }
            return RedirectToAction(MAPP, MAPP);
        } 
    }
}
